package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author : PF_23
 * @Description : TODO
 * @date : 2021/8/7 09:50.
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
public class CateLog2VO {
    /**
     * 一级父分类id
     */
    private String catalog1Id;

    /**
     * 三级子分类
     */
    private List<CateLog3VO> catalog3List;

    private String id;

    private String name;

    /**
     * "catalog2Id": "1",
     * "id": "1",
     * "name": "电子书"
     */

    // 三级分类VO
    @NoArgsConstructor
    @Data
    @AllArgsConstructor
    public static class CateLog3VO {
        private String catalog2Id;

        private String id;

        private String name;
    }
}

